<?xml version="1.0" encoding="ISO-8859-1" ?>

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:rich="http://richfaces.org/rich"
	  xmlns:a4j="http://richfaces.org/a4j"
	  xmlns:a4j2="ajax4jsf.dev.java.net/ajax">
	
	<f:subview id="subviewManterCor">
		<rich:modalPanel id="manterCor" autosized="true" headerClass="height:20px;" resizeable="false" >
		
		 <f:facet name="header">
			  		<h:outputText id="head_cor" value="#{corBackBean.corFormBean.head}" />
			</f:facet>
			
			
			
			<f:facet name="controls">
				<h:panelGroup>
					<h:graphicImage value="/images/close.gif" styleClass="botao_fechar_popup" id="hideLink">
						<rich:componentControl for="manterCor" attachTo="hideLink" operation="hide" event="onclick" />
					</h:graphicImage>
				</h:panelGroup>
				
			</f:facet>
			
			<div class="red">
				<rich:messages id="msgCorManter"></rich:messages>
			</div>
			
			
			<a4j:form ajaxSubmit="true" id="formCorManter" reRender="cor_codigo, cor_descricao">
			
                <h:panelGrid columns="4">
                
                	<h:outputLabel value="#{bundle.cor_codigo}:" for="cor_codigo" />
                    <h:inputText id="cor_codigo" value="#{corBackBean.corFormBean.corManter.codigo}" label="#{bundle.cor_codigo}" readonly="true" disabled="#{corBackBean.corFormBean.isDisabled}" size="5" />
                    
                	<h:outputLabel value="*#{bundle.cor_descricao}:" for="cor_descricao" />
                    <h:inputText id="cor_descricao" value="#{corBackBean.corFormBean.corManter.descricao}" label="#{bundle.cor_descricao}" disabled="#{corBackBean.corFormBean.isDisabled}" maxlength="50" size="40" />
                    
                </h:panelGrid>
                
                <div class="linha"/>
                
                <a4j:commandButton action="#{corBackBean.manterCor}" value="#{bundle.cor_btn_gravar}" id="btnGravar" reRender="formCorManter" disabled="#{corBackBean.corFormBean.isDisabled}" />
                <a4j:commandButton action="#{corBackBean.excluirCor}" value="#{bundle.cor_btn_excluir}" id="btnExcluir" reRender="gridCor" disabled="#{!corBackBean.corFormBean.isDisabled}" >
                	<rich:componentControl for="manterCor" attachTo="btnExcluir" operation="hide" event="onclick" />
                </a4j:commandButton>
                <a4j:commandButton value="#{bundle.cor_btn_voltar}" id="btnVoltar" action="#{corBackBean.obterListaCor}" reRender="gridCor" >
                	<rich:componentControl for="manterCor" attachTo="btnVoltar" operation="hide" event="onclick" />
                </a4j:commandButton>
					
			</a4j:form>

		</rich:modalPanel>
	</f:subview>

</html>